package com.diablo.sitemanager.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

/**
 * Created by diablo13064 on 2018/5/22.
 *
 */
@Controller
@RequestMapping("/login")
public class LoginController {
    /**
     * 跳转登陆页
     * @param session
     * @return
     */
    @RequestMapping("/page")
    public String login(HttpSession session) {

        return "login:";
    }

    /**
     * 验证登陆信息
     * @param username
     * @param password
     * @param session
     * @return
     */
    @RequestMapping("/valid")
    public String validator(String username, String password, HttpSession session) {

        return "";
    }
}
